<?php if (!defined('THINK_PATH')) exit();?><div class="col-md-9 department-log" style="display:none">
	<div style="width:100%;height:90px;"></div>
	<div class="panel panel-default" style="margin-top:10px;">
		<div class="panel-heading">
		  <h4 class="panel-title">
			<a class="accordion-toggle data-parent="#accordion">部门日志</a>
			<select name="select_department_id" class="pull-right" style="width:30%;margin-right:10px" onchange="searchByDepartment(value,'__APP__/Account/searchByDepartment')">
				<option value="-2">选择部门</option>
				<?php if(is_array($department)): $i = 0; $__LIST__ = $department;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["department_id"]); ?>"><?php echo ($vo["department_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
			</select>
		  </h4>
		</div>
		<div id="collapseOne" class="panel-collapse collapse in users">
		  <div class="panel-body user-list">
			<table class="table table-bordered table-striped table-hover">
				<thead><tr><td>编号</td><td>部门</td><td>部门描述</td><td>人数</td><td>状态</td><td>操作</td></tr></thead>
				<tbody>
					<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
							<td><?php echo ($vo["department_id"]); ?></td>
							<td><?php echo ($vo["department_name"]); ?></td>
							<td><?php echo ($vo["department_description"]); ?></td>
							<td><?php if($vo["department_num"] == ''): ?>0<?php else: echo ($vo["department_num"]); endif; ?></td>
							<td><?php if($vo["status"] == 1): ?>有<?php else: ?>无<?php endif; ?></td>
							<td><h4><span class="label label-primary department-manage" department-name="<?php echo ($vo["department_name"]); ?>" department-id="<?php echo ($vo["department_id"]); ?>">管理</span></h4></td>
						</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				</tbody>
			</table>
		  </div>
		</div>
	</div>
</div>
<script>$(".tooltips").tooltip();</script>